package com.chao.yyks.modular.score.mapper;

import com.alibaba.fastjson.JSONObject;
import com.chao.common.util.reaction.PageList;
import com.chao.yyks.modular.score.bean.EnScore;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;


/**
 * 成绩Mapper
 * chao
 * 2024-09-13
 */
@Repository
public interface EnScoreMapper {

	/**
	 * 新增成绩
	 */
	int insertEnScore(EnScore enScore);

	/**
	 * 修改成绩
	 */
	int updateEnScore(EnScore enScore);

	/**
	 * 删除成绩
	 */
	int deleteEnScore(String scoreId);

	/**
	 * 删除成绩
	 */
	int deleteEnScoreAnswer(String scoreId);

	/**
	 * 查询成绩详情
	 */
	EnScore selectEnScoreByScoreId(String scoreId);

	/**
	 * 查询成绩列表
	 */
	PageList<EnScore> selectEnScoreByList(@Param("json") JSONObject json);

	/**
	 * 查询学生得分
	 */
	JSONObject selectEnScore(@Param("studentId") String studentId);

}